package Sl;

public class Sl06 {
    public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
        Class clz=Class.forName("Sl.Person");//加载实例
        Object obj=clz.newInstance(); //调用Person类的无参构造方法创建Person类实例
        System.out.println(obj);//调用Person实例的toString()方法，属性均为默认值
    }
}
